class Stack{
    arr = []
    constructor(){
        
    }
    push(value){
        this.arr.push(value)
    }
    pull(){
        this.arr.pop()
    }
    get size(){
        return this.arr.length
    }
    get stack(){
        return this.arr
    }
    
}

let stack = new Stack()
stack.push(1)
stack.push(2)
stack.push(3)
stack.pull()
console.log(stack);
console.log(stack.size);
console.log(stack.stack);